package com.example.czxyindex.web.remote;

import com.yc.czxy.bean.Buy;
import com.yc.czxy.bean.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient("czxy-seekbuy")
@RequestMapping("buy")
public interface IBuyAction {


    @PostMapping("addBuy")
    Result<Buy> addBuy(@RequestBody Buy buy);

    /**
     * 调用远程的删除求购方法
     */
    @PostMapping("deleteBuyBybid")
    Result<Buy> deleteBuyBybid(@RequestBody Buy buy);


    @GetMapping("selectBuyByUid")
    List<Buy> selectBuyByUid(@RequestParam("uid") Integer uid);
}
